// import { defineStore } from 'pinia'
// import { ref } from 'vue'
// import {
//   artGetChannelsService,
//   artAddChannelsService,
//   artEditChannelService
// } from '@/api/article'

// export const useArticleStore = defineStore('big-article', () => {
//   const channels = ref([])
//   const getChannels = async () => {
//     const res = await artGetChannelsService()
//     channels.value = res.data.data || []
//   }
//   const clearChannels = () => {
//     channels.value = []
//   }
//   const addChannels = ({ cate_name, cate_alias }) => {
//     artAddChannelsService({ cate_name, cate_alias })
//   }
//   const editChannels = ({ id, cate_name, cate_alias }) => {
//     artEditChannelService({ id, cate_name, cate_alias })
//   }
//   return {
//     channels,
//     getChannels,
//     clearChannels,
//     addChannels,
//     editChannels
//   }
// })
